package base.IO流;

import java.io.*;

public class out_1 {
    public static void main(String[] args) throws IOException {
        File src = new File(".\\src\\base\\IO流\\a.txt");
        FileOutputStream fos = new FileOutputStream(src,true);
        String str = "Hello World!";
        byte[] bytes = str.getBytes();
        fos.write(bytes);
        byte[] wrap = {'\r','\n', (byte) '人'};
        fos.write(wrap);

        fos.close();
    }
}
